# $Id: PKGBUILD 83064 2013-01-27 09:58:41Z andrea $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=xdelta
pkgver=1.1.4
pkgrel=4
pkgdesc="binary file delta generator"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/xdelta/"
license=('GPL')
depends=('glib' 'zlib')
options=('!libtool')
source=(http://xdelta.googlecode.com/files/$pkgname-$pkgver.tar.gz
        xdelta-1.1.4-aclocal.patch)
md5sums=('1b896c01ebf0e353b7e3c3071b05f496'
         '1d8ab5909bdf977a2783c164b66906fd')

build() {
  cd $srcdir/$pkgname-$pkgver
  patch -Np1 -i $srcdir/xdelta-1.1.4-aclocal.patch
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install
}
